// samsting : this file is auto create.

#include "OssAdmin/2013-07-12/GetBucketPolicyResponse.h"

namespace aliyun { namespace OssAdmin {

GetBucketPolicyResponse::GetBucketPolicyResponse() {
}

const std::vector<string>& GetBucketPolicyResponse::WhiteReferList::GetReferList(void) const {
  return ReferList_;
}

const GetBucketPolicyResponse::WhiteReferList& GetBucketPolicyResponse::GetWhiteReferList(void) const {
  return WhiteReferList_;
}

bool GetBucketPolicyResponse::GetDisallowEmptyRefer(void) const {
  return DisallowEmptyRefer_;
}

bool GetBucketPolicyResponse::GetEnableDualCluster(void) const {
  return EnableDualCluster_;
}

const string& GetBucketPolicyResponse::GetErrorFile(void) const {
  return ErrorFile_;
}

const string& GetBucketPolicyResponse::GetIndexFile(void) const {
  return IndexFile_;
}

const string& GetBucketPolicyResponse::GetLocation(void) const {
  return Location_;
}

const string& GetBucketPolicyResponse::GetLogBucket(void) const {
  return LogBucket_;
}

const string& GetBucketPolicyResponse::GetLogPrefix(void) const {
  return LogPrefix_;
}

const string& GetBucketPolicyResponse::GetIamPolicy(void) const {
  return IamPolicy_;
}

const char* GetBucketPolicyResponse::BaseKey(void) {
  return "GetBucketPolicyResponse";
}

void GetBucketPolicyResponse::UnmarshallerMap(std::map<string, string>& response_map) {
  UnmarshallerBool(DisallowEmptyRefer_, response_map, "GetBucketPolicyResponse.DisallowEmptyRefer");
  UnmarshallerBool(EnableDualCluster_, response_map, "GetBucketPolicyResponse.EnableDualCluster");
  UnmarshallerString(ErrorFile_, response_map, "GetBucketPolicyResponse.ErrorFile");
  UnmarshallerString(IndexFile_, response_map, "GetBucketPolicyResponse.IndexFile");
  UnmarshallerString(Location_, response_map, "GetBucketPolicyResponse.Location");
  UnmarshallerString(LogBucket_, response_map, "GetBucketPolicyResponse.LogBucket");
  UnmarshallerString(LogPrefix_, response_map, "GetBucketPolicyResponse.LogPrefix");
  UnmarshallerString(IamPolicy_, response_map, "GetBucketPolicyResponse.IamPolicy");
    int WhiteReferList__ReferList__length = 0;
    UnmarshallerInt(WhiteReferList__ReferList__length, response_map, "GetBucketPolicyResponse.WhiteReferList.ReferList.Length");
    if(WhiteReferList__ReferList__length >= 0) {
      WhiteReferList_.ReferList_.resize(WhiteReferList__ReferList__length);
      for(int i2 = 0; i2 < WhiteReferList__ReferList__length; i2++) {
        UnmarshallerString(WhiteReferList_.ReferList_[i2], response_map, "GetBucketPolicyResponse.WhiteReferList.ReferList["+string_ValueOfInt(i2)+"]");
      } // for(int i2 = 0; i2 < WhiteReferList__ReferList__length; i2++) {
    } // if(WhiteReferList__ReferList__length >= 0) {

}


} } // namespace aliyun { namespace OssAdmin {

// end of file 
